package com.example.demo.design_patterns.Strategy;

/**
 * 测试类
 *
 * @author: htc
 * @date: Created in 18:09 2019/3/12.
 */
public class Test {
    public static void main(String[] args) {
        Environment environment = new Environment(new AddStrategy());
        int result = environment.caculate(20, 30);
        System.out.println(result);
    }
}
